# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms_hi.dm.dm_center_departure_prediction_hi import jms_dm__dm_center_departure_prediction_hi
jms_oracle__dm_center_departure_prediction_c2c_hi = BashOperator(
    task_id='jms_oracle__dm_center_departure_prediction_c2c_hi',
    execution_timeout=timedelta(hours=2),
    email=['yl_etl@yl-scm.com','rongguangfan@jtexpress.com'],
    # name='jms_oracle__dm_center_departure_prediction_{{ execution_date | date_add(1) | cst_ds }}',
    bash_command="jms_hi/oracle/dm_center_departure_prediction_c2c_hi/execute.sh",
    pool='spmi_apack',
    retries=1,
    pool_slots=2,
)

jms_oracle__dm_center_departure_prediction_c2c_hi << [jms_dm__dm_center_departure_prediction_hi]